package com.tourlaid.mamagerment.mapper

import com.tourlaid.mamagerment.dto.HomeDto
import com.tourlaid.mamagerment.entity.Thought
import org.apache.ibatis.annotations.Param
import java.util.*

/**
 * Created by xiaoyongge on 2017/7/19.
 */

interface ThoughtMapper {

    fun getById(id: Long): Thought;

    fun insert(record: Thought);

    fun queryForList(@Param("integral") integral: Int, @Param("startDate") startDate: Date): List<HomeDto>?

    fun queryByUserId(@Param("userId") userId: Long): List<Thought>

    fun queryCountByStoreIdList(@Param("storeIdList") storeIdList: List<Long>): List<Map<String, Any>>

    fun queryByShoreId(@Param("storeId") storeId: Long): List<HomeDto>?

    fun delete(@Param("id") id: Long, @Param("editor") editor: Long?)

}